﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Persistente;
using Persistente.Auxiliar;

namespace Negocio.Auxiliar
{
    public class NStatus
    {
        public int idStatus { get; set; }
        public string dsStatus { get; set; }

        public List<tb_status> pegarTodosStatus()
        {
            var obPStatus = new PStatus();
            return obPStatus.pegarTodosStatus();
        }

        public void pegarStatusPorId(int idStatus)
        {
            var obPStatus = new PStatus();
            var obTbStatus = obPStatus.pegarStatusPorId(idStatus);
            try
            {
                idStatus = obTbStatus.id_status;
                dsStatus = obTbStatus.ds_status;
            }
            catch (Exception)
            {
                
                throw;
            }
                
        }
    }
}
